<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateWxAccessTokenTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('wx_access_token',function(Blueprint $table)
        {
            $table->increments('id');
            $table->string('access_token')->nullable()->comment('accessToken');
            $table->integer('last_time')->default(0);
            $table->string('type')->nullable()->comment('类型 wechat 公众号  wxapp 小程序');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
